package blue.datacenter;

import java.io.IOException;
import java.nio.channels.SocketChannel;

public interface ConnectionInterface {
	public SocketChannel getSockChannel();
	public String getIP();
	public int getPort();
	public void setId(int id);
	public int getId();
	public String getSN();
	public ConnectionType getType();
	public void setTypePrivilege();
	public void setAttach(Object obj);
	public Object getAttach();
	
	public String read() throws IOException;
	public int write(String msg) throws IOException;
	public boolean reconnection() throws IOException;
}
